package com.niiwoo.civet.mobile.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

@Setter
@Getter
@ApiModel
public class AppVersionRequestVO {

    @NotBlank(message = "versionValue不能为空")
    @ApiModelProperty(value = "版本值", required = true)
    private String versionValue;

    @NotBlank(message = "versionName不能为空")
    @ApiModelProperty(value = "版本名称", required = true)
    private String versionName;

    @NotBlank(message = "deviceType不能为空")
    @ApiModelProperty(value = "设备类型（IOS,Android)")
    private String deviceType;

    @ApiModelProperty(value = "MD5校验和")
    private String md5;

    @NotBlank(message = "url不能为空")
    @ApiModelProperty(value = "下载地址", required = true)
    private String url;

    @ApiModelProperty(value = "描述")
    private String detail;

    @NotBlank(message = "enabled不能为空")
    @ApiModelProperty(value = "是否开启该次更新,针对Android热更新出问题时设置开启，从服务端获取新版本", required = true)
    private Byte enabled;

    @NotBlank(message = "isForceUpdate不能为空")
    @ApiModelProperty(value = "是否强制更新（0否，1是）", required = true)
    private Byte isForceUpdate;


}